﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Article : HtmlElement
	{
		public Article() : base(ArticleDescription.Instance) { }
	}
	public class ArticleDescription : HtmlElementDescription
	{
		public static readonly ArticleDescription Instance = new ArticleDescription();
		private ArticleDescription() : base("article", HtmlVersion.Html5) { }
		public override Type ControlType { get { return typeof(Article); } }
		public override string Description { get { return "section of content that forms an independent part of a document or site; for example, a magazine or newspaper article, or a blog entry."; } }
		public override bool IsFlowElement { get { return true; } }
		public override bool OnlyFlowContent { get { return true; } }
		public override System.Collections.Generic.IEnumerable<HtmlElementDescription> PermittedElements { get { yield return StyleDescription.Instance; } }
	}
}
